home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / pcmciautils.postinst < prev    next >
Text File  |  2007-10-23  |  965b  |  46 lines

  1. #! /bin/sh
  2. set -e
  3.  
  4. # Remove a no-longer used conffile
  5. rm_conffile()
  6. {
  7.     CONFFILE="$1"
  8.  
  9.     if [ -e "$CONFFILE" ]; then
  10.         echo "Removing obsolete conffile $CONFFILE"
  11.         rm -f "$CONFFILE"
  12.     fi
  13. }
  14.  
  15. case $1 in
  16.     configure)
  17.         if [ ! -f /etc/pcmcia/config.opts ]; then
  18.             cp -a /usr/lib/pcmciautils/config.opts /etc/pcmcia/
  19.         fi
  20.         if dpkg --compare-versions "$2" lt 010-0ubuntu8; then
  21.             rm_conffile /etc/udev/pcmcia.rules
  22.         fi
  23.         # Ubuntu boot order
  24.         if [ -L /etc/rcS.d/S40pcmciautils ]; then
  25.             mv /etc/rcS.d/S40pcmciautils \
  26.                /etc/rcS.d/S13pcmciautils
  27.         fi
  28.  
  29.         # Remove shutdown and reboot links;
  30.         # this init script does not need them.
  31.         if dpkg --compare-versions "$2" lt "014-1ubuntu2"; then
  32.             rm -f /etc/rc0.d/K88pcmciautils \
  33.                   /etc/rc6.d/K88pcmciautils
  34.         fi
  35.         ;;
  36. esac
  37.  
  38. # Automatically added by dh_installinit
  39. if [ -x "/etc/init.d/pcmciautils" ]; then
  40.     update-rc.d pcmciautils start 13 S . >/dev/null || exit $?
  41. fi
  42. # End automatically added section
  43.  
  44.  
  45. exit 0
  46.